:root {
    --blue: #0b69b9;
    --white: #f5f5f5;
    --black: #001f2d;
}
.hme{
    color:#0b69b9;
    font-size: medium;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--black);
    color: var(--white);
    padding: 40px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(11,105,185,0.2);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.read-more-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background: var(--blue);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.read-more-btn:hover {
    background: #007bff;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    backdrop-filter: blur(6px);
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background: var(--white);
    margin: 8% auto;
    padding: 25px;
    width: 90%;
    max-width: 850px;
    border-radius: 12px;
    color: var(--black);
    animation: fadeInScale 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Fade-in animation for article text */
.article-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: articleFadeIn 0.6s forwards;
}

@keyframes articleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    float: right;
    font-size: 25px;
    cursor: pointer;
    color: red;
    font-weight: bold;
}

.close-btn:hover {
    color: black;
}

h3 {
    color: var(--blue);
    margin-bottom: 10px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    backdrop-filter: blur(6px);
    background-color: rgba(0,0,0,0.85); /* darker, matching site theme */
}

.modal-content {
    background: rgba(0, 31, 45, 0.95); /* dark card for content */
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 850px;
    border-radius: 12px;
    color: var(--white);
    border: 1px solid rgba(11,105,185,0.4);
    animation: fadeInScale 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: var(--blue);
    margin-bottom: 15px;
}

.close-btn {
    float: right;
    font-size: 25px;
    cursor: pointer;
    color: var(--blue);
    font-weight: bold;
}

.close-btn:hover {
    color: #fff;
}

/* Fade-in animation for article text */
.article-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: articleFadeIn 0.6s forwards;
}

@keyframes articleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
